-- GENERATED SPELL FOR [Frayfeather Stagwing] --


function spell0_5304(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5304', 2327, 1)
end

function Sorts_5304(pUnit, Event)
local choix_sorts_5304 = math.random(0, 0)
if choix_sorts_5304 == 0 then
pUnit:RegisterEvent('spell0_5304', 1, 1)
end
end

function mob5304_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5304', math.random(1500, 3000), 1)
end

function mob5304_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5304_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5304_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5304, 1, 'mob5304_Action')
RegisterUnitEvent(5304, 2, 'mob5304_Leave')
RegisterUnitEvent(5304, 3, 'mob5304_Kill')
RegisterUnitEvent(5304, 4, 'mob5304_Die')
